package com.gxa.luckin.sso.service;

import com.gxa.luckin.core.exception.BusinessException;
import com.gxa.luckin.core.pojo.User;

import java.util.Map;

public interface SsoService {
    //如果登录成功,将token返回给前端
    Map<String,String> login(String phone, String code) throws BusinessException;
    User validateToken(String token) throws BusinessException;
}
